package com.sky.controller.test1;

public class Test03 {
    public static void main(String[] args) {
        System.out.println(C.MYNAME);//会转成常量 System.out.println("shixiaoyu");
    }
}
class  A extends B{}
class  B{
    public static final int a = 1;
}
//成员变量分为静态变量和实例变量,静态变量属于类，实例变量属于对象
class  C{
    public static final int a = 1;
    public int b = 2;
    public static final String MYNAME = "shixiaoyu";
//    打印


}
//使用static final修饰的成员变量就称为常量,常用语记录系统的配置信息

